import { IControlState } from '@ibiz-template/runtime';

export interface IResourceScheduleTableState extends IControlState {
  /**
   * @description 是否为缓存模式
   * @type {boolean}
   * @memberof IResourceScheduleTableState
   */
  isCacheMode: boolean;

  /**
   * @description 主数据
   * @type {IData}
   * @memberof IResourceScheduleTableState
   */
  data: IData;

  /**
   * 任务
   *
   * @type {IData[]}
   * @memberof ResourceScheduleTableState
   */
  tasks: IData[];

  /**
   * 资源数据
   *
   * @type {IData[]}
   * @memberof ResourceScheduleTableState
   */
  resources: IData[];

  /**
   * 标题
   *
   * @type {string}
   * @memberof IResourceScheduleTableState
   */
  caption?: string;

  /**
   * 任务颜色配置
   *
   * @type {{
   *     [p: string]: {
   *       taskColor: string;
   *       taskBgColor: string;
   *       taskAcitveBorderColor: string;
   *     };
   *   }}
   * @memberof IResourceScheduleTableState
   */
  taskColorOptions?: {
    [p: string]: {
      taskColor: string;
      taskBgColor: string;
      taskAcitveBorderColor: string;
    };
  };
}
